package com.minglead.springboot.platform.sys.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.minglead.springboot.common.persistence.CrudDao;
import com.minglead.springboot.common.persistence.TreeDao;
import com.minglead.springboot.platform.sys.entity.Menu;
import com.minglead.springboot.common.crud.annotation.MyBatisDao;

/**
 * 菜单DAO接口
 */
@MyBatisDao
public interface MenuDao extends CrudDao<Menu> {

	public List<Menu> findByParentIdsLike(Menu menu);

	public List<Menu> findByUserId(Menu menu);
	
	public int updateParentIds(Menu menu);
	
	public int updateSort(Menu menu);
	
	public Menu getRoot();	
	
	public List<Menu> getSubList(@Param("menuId")String menuId);
}
